import request from "@/utils/request";

// 获取订单列表
export const getOrderListApi = (data) => {
  return request({
    method: "POST",
    url: "manager/order-manager/order/page",
    data,
  });
};

// 获取城市下拉列表
export const getCityListApi = (id) => {
  return request({
    method: "GET",
    url: "/manager/areas/children",
    params: { parentId: id },
  });
};
// 获取订单单行数据
export const getOrderDanDateApi = (id) => {
  return request({
    method: "GET",
    url: `/manager/order-manager/order/${id}`,
    params: {
      0: id,
    },
  });
};
//获取运单表单
export const getYunDanListApi = (data) => {
  return request({
    method: "POST",
    url: "/manager/transport-order-manager/page",
    data,
  });
};

//获取运单状态数量
export const getYunNumber = () => {
  return request({
    method: "GET",
    url: "/manager/transport-order-manager/count",
  });
};

//获取运单详细数据
export const getDateApi = (id) => {
  return request({
    method: "GET",
    url: `manager/transport-order-manager/${id}`,
    params: {
      0: id,
    },
  });
};
